<?php
class Control_Game_getActivityByGame {

	function getActivityByGame() {
		$game 	= MooForm::request('game');
		$gameLangConf = MooConfig::get('game_lang.zh_en');
		if($gameLangConf[$game]) {
			$game = $gameLangConf[$game];
		}
		$res = MooObj::get('Game')->getActivityByGame($game);
		$rs = MooJson::encode($res);
		exit($rs);
	}
}